package java9_3.shopcart;

/**
 * @author oldliu
 * @since 1.0
 */
public class Mall {
    private String name,addr;

    private Product []pr=new Product[100];
    private int pindex=0;
    private User users[]=new User[100];
    private int uindex=0;

    /**
     *  登录
     */
    public User login(String username,String password){
        for (int i = 0;i<uindex;i++){
                //...
                return users[i];

        }
        return null;
    }
    public void showProduct(){

    }
    public Product find(String no){
        return null;
    }
    //加入商品到购物车
//    public void addProductToCart(User user,Product p){
////        user.add(p);
////    }
}
